package com.media.themovieworld.common.adapter;

import java.util.ArrayList;

import com.media.themovieworld.R;
import com.media.themovieworld.widget.ViewHolder;

import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class MovieSpinnerAdapter extends BaseListAdapter<String>{

	public MovieSpinnerAdapter(Activity activity, ArrayList<String> datas) {
		super(activity, datas);
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		View row = convertView;
		if (row == null) {
			row = LayoutInflater.from(mActivity).inflate(R.layout.tmw__drop_down_list, null);
		}
		TextView tName = ViewHolder.get(row, R.id.tmw__drop_down_list_text_view);
		tName.setText(getItem(position));
		return row;
	}

}
